﻿<Window x:Class="wiki2doc.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Wiki2Doc - Generate documentation from a wiki namespace" Height="510" Width="883"
        Icon="Images/mk.ico" >
    <DockPanel Name="dock">
        <Menu  Name="menu1" Height="22" DockPanel.Dock="Top">
            <MenuItem Header="_File" >
                <MenuItem Header="_Load configuration" Name="mnuOpen" Click="mnuOpen_Click" />
                <MenuItem Header="_Store configuration" Name="mnuSave" Click="mnuSave_Click" />
                <Separator />
                <MenuItem Header="_Close" Name="mnuClose" Click="mnuClose_Click" >
                    <MenuItem.Icon>
                        <Image Source="/wiki2doc;component/Images/stop.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            
            <MenuItem Header="_Generate" Name="mnuGenerate" />

            <MenuItem Header="_Options" >
                <MenuItem Header="_Set template path" Name="mnuSetTemplatePath"/>
            </MenuItem>
            
        </Menu>

        <StatusBar Height="23" Name="statusBar1"  DockPanel.Dock="Bottom" >
            <StatusBarItem>
                <TextBlock x:Name="txtStatusText1" Text=""/>
            </StatusBarItem>
            
           
            
        </StatusBar>

        <StackPanel Margin="0" Name="stackPanelMain" Background="LightGray">
            <GroupBox Header="Wiki:" Height="170" Name="groupBox1" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" >
                        <Label Content="Wiki type:" Height="28"  />
                        <Label Content="URL:" Height="28"  />
                        <Label Content="Username:" Height="28"  />
                        <Label Content="Password:" Height="28"  />
                        <Label Content="Namespace:" Height="28"  />
                    </StackPanel>
                    <StackPanel Grid.Column="1" >
                        <ComboBox Height="23"  Name="cmbWikiType" Width="200" Margin="3" HorizontalAlignment="Left" SelectedValue="{Binding WikiType}" />
                        <TextBox Height="23"  Name="txtURL" Margin="3" Text="{Binding URL}" />
                        <TextBox Height="23"  Name="txtUsername" Margin="3" Width="200" HorizontalAlignment="Left" Text="{Binding Username}" />
                        <TextBox Height="23"  Name="txtPassword" Margin="3" Width="200" HorizontalAlignment="Left" Text="{Binding Password}" />
                        <TextBox Height="23"  Name="txtNamespace" Margin="3" Width="200" HorizontalAlignment="Left" Text="{Binding Namespace}" />
                    </StackPanel>
                </Grid>
            </GroupBox>

            <GroupBox Header="Document properties:" Height="110" Name="groupBox2" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" >
                        <Label Content="Title:" Height="28"  />
                        <Label Content="Author:" Height="28"  />
                        <Label Content="Language:" Height="28"  />
                        
                    </StackPanel>
                    <StackPanel Grid.Column="1" >
                        <TextBox Height="23"  Name="txtTitle" Margin="3" Width="200" HorizontalAlignment="Left" Text="{Binding Title}" />
                        <TextBox Height="23"  Name="txtAuthor" Margin="3" Width="200" HorizontalAlignment="Left" Text="{Binding Author}" />
                        <ComboBox Height="23" Name="cmbLanguage" Margin="3" Width="100" HorizontalAlignment="Left" />
                    </StackPanel>
                </Grid>
            </GroupBox>

            <GroupBox Header="Output to:" Height="90" Name="groupBox3" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" >
                        <Label Content="Filename:" Height="28"  />
                        <Label Content="Output folder:" Height="28">
                            <Label.ToolTip>(Empty=Same location as configuration file)</Label.ToolTip>
                        </Label> 
                    </StackPanel>
                    <StackPanel Grid.Column="1" >
                        <TextBox Height="23"  Name="txtFilename" Margin="3" Width="200" HorizontalAlignment="Left"/>
                        <StackPanel Orientation="Horizontal">
                            <TextBox Height="23"  Name="txtLocation" Margin="3" Width="200" HorizontalAlignment="Left" />
                            <Button Content="..." Name="btnBrowseFolder" />
                        </StackPanel>

                    </StackPanel>
                </Grid>
            </GroupBox>
        </StackPanel>

        
        
    </DockPanel>
</Window>
